WooCommerce\Square\Framework\Api\Base A

Total Complexity 59
Dependencies 7
Dependents 0
Total lines 665
Lines of code 197
Logical lines of code 93
Comment lines 344
Methods 35
Properties 13

Methods 35

Method Rating Maintainability Complexity Lines of code
get_request_query()
S
62 4 11
perform_request()
S
56 3 17
handle_response()
S
57 3 16
get_sanitized_request_body()
S
69 4 6
get_request_body()
S
69 4 6
get_request_uri()
S
59 3 14
broadcast_request()
S
56 2 17
get_request_method()
S
78 3 3
is_tls_1_2_available()
S
63 3 10
get_request_args()
S
58 1 15
get_sanitized_response_body()
S
78 2 3
set_tls_1_2_request()
S
70 2 6
get_sanitized_request_headers()
S
68 2 7
get_request_path()
S
79 2 3
require_tls_1_2()
S
82 1 3
set_response_handler()
S
81 1 3
set_request_accept_header()
S
80 1 3
set_request_content_type_header()
S
80 1 3
get_plugin()
S
100 1 0
get_new_request()
S
100 1 0
get_api_id()
S
82 1 3
get_response()
S
82 1 3
get_request()
S
82 1 3
get_raw_response_body()
S
82 1 3
get_response_headers()
S
82 1 3
get_response_message()
S
82 1 3
get_response_code()
S
82 1 3
get_response_handler()
S
82 1 3
do_remote_request()
S
79 1 3
get_request_user_agent()
S
76 1 3
get_request_headers()
S
82 1 3
get_request_http_version()
S
82 1 3
get_parsed_response()
S
76 1 4
reset_response()
S
68 1 8
get_request_duration()
S
82 1 3